﻿@{
    ViewBag.Title = "订单详细";
}
@section headerSection{
    <style>
        body{
            font-family:'微软雅黑';
            font-size:14px;
            color:#676a6c;
        }
        a{
            font-size:15px;
        }
    </style>
}

<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        @if (ViewBag.detailed != null)
        {
        <table class="table">
            <thead>
                <tr>
                    <th>名称</th>
                    <th>类型</th>
                    <th>大小</th>
                    <th>文档分类</th>
                    <th>购买价格</th>
                </tr>
            </thead>
            <tbody>
                @for (int i = 0; i < ViewBag.detailed.commoditys.Count; i++)
                {
                    <tr>
                        <td><a href="#">@ViewBag.detailed.commoditys[0].name</a></td>
                        <td>@ViewBag.detailed.commoditys[i].type</td>
                        <td>@ViewBag.detailed.commoditys[i].size</td>
                        <td>@ViewBag.detailed.commoditys[i].classify</td>
                        <td style="color:red;">￥@ViewBag.detailed.commoditys[i].money</td>
                    </tr>
                }
            </tbody>
        </table>
        <table style="float:right;font-size:120%;">
            <tr>
                <td>订单编号：</td>
                <td>
                    @ViewBag.detailed.orderCode
                </td>
            </tr>
            <tr>
                <td>创建日期：</td>
                <td>
                    @ViewBag.detailed.cTime
                </td>
            </tr>
            <tr>
                <td>商品总额：</td>
                <td>
                    ¥ @ViewBag.detailed.money
                </td>
            </tr>
            <tr style="color:red;">
                <td>实付总额：</td>
                <td style="font-weight: bold;">
                    ¥@ViewBag.detailed.pramoney
                </td>
            </tr>
        </table>
        }
        else
        {
            <h1><span class="fa fa-shopping-cart"></span>&nbsp;订单为空</h1>
        }
    </div>
</div>
